$OpenBSD: patch-src_main_radsniff_c,v 1.3 2014/04/13 20:16:03 ajacoutot Exp $
--- src/main/radsniff.c.orig	Mon Sep 10 13:51:34 2012
+++ src/main/radsniff.c	Sun Apr 13 17:43:53 2014
@@ -40,7 +40,7 @@ static VALUE_PAIR *filter_vps = NULL;
 
 static int minimal = 0;
 static int do_sort = 0;
-struct timeval start_pcap = {0, 0};
+struct bpf_timeval start_pcap = {0, 0};
 static rbtree_t *filter_tree = NULL;
 static rbtree_t *request_tree = NULL;
 static pcap_dumper_t *pcap_dumper = NULL;
@@ -165,8 +165,8 @@ static void sort(RADIUS_PACKET *packet)
 }
 
 #define USEC 1000000
-static void tv_sub(const struct timeval *end, const struct timeval *start,
-		   struct timeval *elapsed)
+static void tv_sub(const struct bpf_timeval *end, const struct bpf_timeval *start,
+		   struct bpf_timeval *elapsed)
 {
 	elapsed->tv_sec = end->tv_sec - start->tv_sec;
 	if (elapsed->tv_sec > 0) {
